Pydantic Graph